import asyncio
import time

async def a():
    print(1)
    time.sleep(2)   # time模块不支持异步
    print(2)

async def b():
    print(3)
    await asyncio.sleep(2)
    print(4)

task = [a(), b()]
asyncio.run(asyncio.wait(task))
